﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraReports.UI;

namespace IB_report_stand.Dialog
{
    public partial class dlg_stock : DevExpress.XtraEditors.XtraForm
    {
        public dlg_stock()
        {
            InitializeComponent();
        }

        private void btnReport_Click(object sender, EventArgs e)
        {
            DateTime startDte = dteStart.DateTime;
            DateTime endDte = dteEnd.DateTime;

            rpt_stock report = new rpt_stock(startDte, endDte);
            ReportPrintTool tool = new ReportPrintTool(report);
            tool.ShowPreview();
            this.Close();
        }
    }
}